package ro.noelx.connections.ui;

import ro.noelx.android.tools.ui.EntityAdapter;
import ro.noelx.connections.R;
import ro.noelx.connections.model.Verb;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class VerbListAdapter extends EntityAdapter<Verb> {


	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		final LayoutInflater inflater = (LayoutInflater) parent.getContext()
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

		View view = inflater.inflate(R.layout.verb_list_multi_line_list_item,
				null);

		final Verb verb = (Verb) getItem(position);

		TextView value = (TextView) view.findViewById(R.id.value);
		value.setText(verb.getValue());
		// if (longClickMenuItem.getOnClickListener() != null) {
		// view.setOnClickListener(longClickMenuItem.getOnClickListener());
		// }
		return view;

	}

}
